package com.hx.jeeadminsecurity.auth2.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "tb_user")
public class TbUser {

    private static final long serialVersionUID = 1L;

    @Id
    private Long id;

    /**
     * 用户名
     */
    @Column(name = "username")
    private String username;

    /**
     * 密码，加密存储
     */
    @Column(name = "password")
    private String password;

//    /**
//     * 注册手机号
//     */
//    @TableField(value = "phone")
//    private String phone;
//
//    /**
//     * 注册邮箱
//     */
//    @TableField(value = "email")
//    private String email;

    @Column(name = "created")
    private Date created;

    @Column(name = "updated")
    private Date updated;

    @Column(name = "status")
    private Byte status;
}
